# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=twtxt
pkgver=1.2.3
pkgrel=2
pkgdesc="Decentralised, minimalist microblogging service for hackers"
url="https://github.com/buckket/twtxt"
arch="noarch"
license="MIT"
depends="py3-setuptools py3-dateutil py3-aiohttp py3-click py3-humanize"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/t/twtxt/twtxt-$pkgver.tar.gz"
options="!check" # humanize seems to return a day of difference for an hour

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3
}

package() {
	python3 setup.py install --root="$pkgdir"
}


sha512sums="
c909fd617c338c1eb1800e06aaec1d86cb82e27198316fb35ccab4e5e923c657e0793f16d5e3302e256df23ee58e7d136ed55b6cdc09e50d09bcdefc86c820e6  twtxt-1.2.3.tar.gz
"
